package it.polimi.it.TravelDream.entities;

import java.io.Serializable;

import javax.persistence.*;

import java.util.Date;


/**
 * The persistent class for the HOTEL database table.
 * 
 */
@Entity
@Table(name="hotel")
@NamedQueries({
	@NamedQuery(name=Hotel.FIND_ALL,
				query="SELECT h FROM Hotel h")
	}
	)
public class Hotel implements Serializable {
	private static final long serialVersionUID = 1L;
	public static final String FIND_ALL = "Hotel.findAll";

	@Id
	private String idbasicproduct;

	private String city;

	@Temporal(TemporalType.DATE)
	private Date datain;

	@Temporal(TemporalType.DATE)
	private Date dataout;

	private String idbuyer;

	private String idpackage;

	private String name;

	private int price;

	private int roomnumber;

	public Hotel() {
	}

	public String getIdbasicproduct() {
		return this.idbasicproduct;
	}

	public void setIdbasicproduct(String idbasicproduct) {
		this.idbasicproduct = idbasicproduct;
	}

	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public Date getDatain() {
		return this.datain;
	}

	public void setDatain(Date datain) {
		this.datain = datain;
	}

	public Date getDataout() {
		return this.dataout;
	}

	public void setDataout(Date dataout) {
		this.dataout = dataout;
	}

	public String getIdbuyer() {
		return this.idbuyer;
	}

	public void setIdbuyer(String idbuyer) {
		this.idbuyer = idbuyer;
	}

	public String getIdpackage() {
		return this.idpackage;
	}

	public void setIdpackage(String idpackage) {
		this.idpackage = idpackage;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getPrice() {
		return this.price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public int getRoomnumber() {
		return this.roomnumber;
	}

	public void setRoomnumber(int roomnumber) {
		this.roomnumber = roomnumber;
	}

}